//
//  FLNNewTableViewController.m
//  百思不得姐
//
//  Created by xmg on 16/5/28.
//  Copyright © 2016年 FLN.com. All rights reserved.
//

#import "FLNNewViewController.h"
#import "FLNSubTableViewController.h"
#import "UIColor+Hex.h"
@interface FLNNewViewController ()

@end

@implementation FLNNewViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = FLNRandomColor;
    [self setUpNavgationBar];
  
}

- (void)setUpNavgationBar {

    // titleView
    self.navigationItem.titleView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"MainTitle"]];
    
    //导航栏左边内容
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem barButtonItemWithImage:[UIImage imageNamed:@"MainTagSubIcon"] highImage:[UIImage imageNamed:@"MainTagSubIconClick"] target:self action:@selector(tagClick)];
    


}


- (void)tagClick {
    NSLog(@"侧栏");
    FLNSubTableViewController *tagVc = [[FLNSubTableViewController alloc] init];
    //跳转标签界面
    
    [self.navigationController pushViewController:tagVc animated:YES];

}

@end
